package com.lh.glorypavilion.service.edu.feign;

import com.lh.glorypavilion.result.R;
import com.lh.glorypavilion.service.edu.feign.fallback.VodMediaServiceFabllbck;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Service
@FeignClient(value = "service-aliyunvod",fallback = VodMediaServiceFabllbck.class)
public interface VodMediaService {
    @DeleteMapping("/admin/vod/media/remove/{vodId}")
    R removeVideo(@PathVariable("vodId") String vodId);

    @DeleteMapping("/admin/vod/media/removeList")
    R removeList(@RequestBody List<String> videoIdList);
}
